<?php
//require('parse.php');

abstract class craw_tutorialspoint_com
{
	static function get_categories()
	{
		$html	=	new simpleDom();
		$html->load_file(self::get_url());
		$content	=	@$html->find('#leftcol',0);
		//echo 'asasa';die();
		//var_dump($html);
		$obj = new JObject($db,'#__categories');
		foreach($content->find('li[!class]') as $li)
		{
			$obj->title	=	$li->text();
		}
	}
	
	static function get_url()
	{
		return 'http://tutorialspoint.com';
	}
}